package edu.xidian.bdilab.jrbigdata.controller.enterprise;


import edu.xidian.bdilab.jrbigdata.controller.response.ResponseResult;
import edu.xidian.bdilab.jrbigdata.service.enterprise.checkStatics.CheckStaticsService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = {"CheckStatics-企业查看企业数据统计功能"})
public class CheckStatics {

    @Autowired
    CheckStaticsService checkStaticsService;

    @RequestMapping(value = "enterprise/checkStatics", method = RequestMethod.POST)
    public ResponseResult checkStatics(@RequestParam String socialCode)
    {
        ResponseResult responseResult= checkStaticsService.checkStatics(socialCode);
        return  responseResult;
    }
}
